package com.hhs.storage.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.YymCzLog;
import com.hhs.storage.dao.YymCzLogDao;
import com.hhs.storage.service.YymCzLogService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yuanjun
 * @since 2020-08-20
 */
@Service
public class YymCzLogServiceImpl extends ServiceImpl<YymCzLogDao, YymCzLog> implements YymCzLogService {
    @Override
    public Page<YymCzLog> findPage(InputParam inputParam) {
        Page<YymCzLog> page=new Page<YymCzLog>(inputParam.getPage(), inputParam.getSize());
        page.setRecords(this.baseMapper.findPage(page,inputParam));
        return page;
    }

    @Override
    public int zcz(InputParam inputParam) {
        int total=this.baseMapper.totalcz();
        return total;
    }

    @Override
    public int jrzcz(InputParam inputParam) {
        return this.baseMapper.jrzcz();
    }
}
